package mutsumimod.util.varibles;

import basemod.abstracts.DynamicVariable;
import com.megacrit.cardcrawl.cards.AbstractCard;
import mutsumimod.cards.BaseCard;

import static mutsumimod.MutsumiMod.makeID;

public class MagicNumberTwoVariable extends DynamicVariable {

    @Override
    public String key() {
        return makeID("N2");
    }

    @Override
    public boolean isModified(AbstractCard abstractCard) {
        return false;
    }

    @Override
    public int value(AbstractCard abstractCard) {
        if(abstractCard instanceof BaseCard){
            return ((BaseCard) abstractCard).magicNumberTwo;
        }
        return -1;
    }

    @Override
    public int baseValue(AbstractCard abstractCard) {
        if(abstractCard instanceof BaseCard){
            return ((BaseCard) abstractCard).magicNumberTwo;
        }
        return -1;
    }

    @Override
    public boolean upgraded(AbstractCard abstractCard) {
        return false;
    }
}